package simpleModule.model {
	import flash.events.Event;	
	import flash.net.URLLoader;	
	import flash.net.URLRequest;			import org.puremvc.as3.multicore.utilities.fabrication.patterns.proxy.FabricationProxy;			public class SimpleModuleProxy extends FabricationProxy 
	{
		public static const NAME : String = "SimpleModuleProxy";
		private var urlRequest : URLRequest;
		private var urlLoader : URLLoader;

		public function SimpleModuleProxy(data : Object = null) 
		{
			super(NAME, data);
		}
		
		public function load():void
		{
			urlRequest = new URLRequest("assets/xml/SlideshowImages.xml");
			urlLoader = new URLLoader();
			urlLoader.addEventListener(Event.COMPLETE, onXMLLoad);
			urlLoader.load(urlRequest);
		}

		private function onXMLLoad(event : Event) : void 
		{
			data = urlLoader.data;
			sendNotification("xmlLoaded", data);	
		}
	}
}